<template>

  <el-button :loading="downloadLoading" type="primary" size="mini" icon="el-icon-download" @click="handleDownload">导出</el-button>

</template>

<script>
import { parseTime } from '@/utils'
// options components

export default {
  data() {
    return {
      filename: '导出文件',
      bookType: 'xlsx'
    }
  },
  methods: {

    formatJson(filterVal, jsonData) {
      return jsonData.map(v => filterVal.map(j => {
        if (j === 'timestamp') {
          return parseTime(v[j])
        } else {
          return v[j]
        }
      }))
    }
  }
}
</script>

